str_text = input("请输入一段字字符串:").lower()

search_key = input("请输入统计的关键字：").lower()


count_num = str_text.count(search_key)

print("统计的{}在{}文本中出现了{}次".format(search_key,str_text,count_num))

print("==="*10)

print(f"统计的{search_key}在{str_text}文本中出现了{count_num}次")



